import { ref, computed } from 'vue'

// 商家id
const _factoryId = ref('')

/**
 * 商家固定数据服务
 */
export const useFixedFactory = () => {
	// 固定商家id
	const factoryId = computed(() => {
		return _factoryId.value
	})
	
	/**
	 * 用于设置固定商家id
	 * @param {string} id - 商家id
	 */
	const setFixedFactoryId = (id: string) => {
		_factoryId.value = id
	}
	
	return {
		factoryId,
		setFixedFactoryId,
	}
}
